From 1ad6a137c37508e9ea5372fb2ac4b509059853a7 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 26 Oct 2007 10:33:12 +0100 Subject: [PATCH] x86, hvm, vt-d: Kill timer in iommu domain destroy Signed-off-by: Weidong Han --- xen/arch/x86/hvm/vmx/vtd/io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/hvm/vmx/vtd/io.c b/xen/arch/x86/hvm/vmx/vtd/io.c index b5c5ed6df0..81cf1ae609 100644 --- a/xen/arch/x86/hvm/vmx/vtd/io.c +++ b/xen/arch/x86/hvm/vmx/vtd/io.c @@ -180,7 +180,10 @@ void iommu_domain_destroy(struct domain *d) { for ( i = 0; i < NR_IRQS; i++ ) if ( hvm_irq_dpci->mirq[i].valid ) + { pirq_guest_unbind(d, i); + kill_timer(&hvm_irq_dpci->hvm_timer[irq_to_vector(i)]); + } d->arch.hvm_domain.irq.dpci = NULL; xfree(hvm_irq_dpci); } -- 2.30.2